MuleSoft Accelerator for Salesforce B2C Commerce Cloud icon

MuleSoft Accelerator for Salesforce B2C Commerce Cloud

(2 reviews)

SAP Custom BAPI setup guide - Customer sync

The following provides guidance on how to use the custom BAPI code (ZBAPI_CUSTOMER) for your SAP instance.

Important: You must complete the following instructions before proceeding to Use case 5 - Customer sync.

BAPI custom objects

You must create the following ABAP objects in order to use this custom BAPI, which are described below.

Data elements:

  • Z_CC_CUSTNUMB

Structures

  • ZES_CUSTOMER

Table types:

  • ZTY_CUSTOMER

Transparent tables

  • ZTT_CUSTOMER

Function group:

  • ZFG_CUSTOMER

Function modules:

  • ZBAPI_CUSTOMER
  • ZBAPI_CUSTOMER_CREATE
  • ZBAPI_CUSTOMER_CUSTOM_FIELDS
  • ZBAPI_CUSTOMER_UPDATE
  • ZBAPI_QUERY

Creating data elements

ObjectHow to create
Z_CC_CUSTNUMBsfc-b2c-com-bapi2_01.png

Creating structures

ObjectHow to create
ZES_CUSTOMERsfc-b2c-com-bapi2_02.png

Creating table types

ObjectHow to create
ZTY_CUSTOMERsfc-b2c-com-bapi2_03.png

Creating transparent tables

ObjectHow to create
ZTT_CUSTOMERsfc-b2c-com-bapi2_03.1.png

Creating function groups and function modules

  1. Create the function group "ZFG_CUSTOMER".

  2. Create the function module "ZBAPI_CUSTOMER", using "Remote-enable module" as processing type:

    sfc-b2c-com-bapi2_04.png

  3. Complete the import parameters with the following:

    sfc-b2c-com-bapi2_05.png

  4. Complete the export parameters with the following:

    sfc-b2c-com-bapi2_06.png

  5. Copy and paste the code from "ZBAPI_CUSTOMER.txt".

  6. Create the function module "ZBAPI_CUSTOMER_CREATE":

    sfc-b2c-com-bapi2_07.png

  7. Complete the import parameters with the following:

    sfc-b2c-com-bapi2_08.png

  8. Complete the export parameters with the following:

    sfc-b2c-com-bapi2_09.png

  9. Copy and paste the code from "ZBAPI_CUSTOMER_CREATE.txt".

  10. Create the function module "ZBAPI_CUSTOMER_CUSTOM_FIELDS":

    sfc-b2c-com-bapi2_10.png

  11. Complete the import parameters with the following:

    sfc-b2c-com-bapi2_11.png

  12. Copy and paste the code from "ZBAPI_CUSTOMER_CUSTOM_FIELDS.txt".

  13. Create the function module "ZBAPI_CUSTOMER_UPDATE":

    sfc-b2c-com-bapi2_12.png

  14. Complete the import parameters with the following:

    sfc-b2c-com-bapi2_13.png

  15. Complete the export parameters with the following:

    sfc-b2c-com-bapi2_14.png

  16. Copy and paste the code from "ZBAPI_CUSTOMER_UPDATE.txt".

  17. Create the function module "ZBAPI_QUERY", using "Remote-enable module" as processing type:

    sfc-b2c-com-bapi2_15.png

  18. Complete the import parameters with the following:

    sfc-b2c-com-bapi2_16.png

  19. Complete the export parameters with the following:

    sfc-b2c-com-bapi2_17.png

  20. Copy and paste the code from "ZBAPI_QUERY.txt".

  21. Activate the entire function group by right-clicking on it in the tree and then selecting "Activate":

    sfc-b2c-com-bapi2_18.png

Reviews

TypeCustom
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onJun 29, 2021
Asset overview

Asset versions for 1.5.x

Asset versions
VersionActions
1.5.1
1.5.0

Categories

Industry Vertical
RetailNo values left to add
Products
SalesforceSAPServiceNowNo values left to add
Accelerator
B2C Commerce CloudService CloudNo values left to add

Tags